<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .father{
      position: relative;
      top: 200px;
      left: 200px;
      overflow: hidden;
      height: 100px;
      width: 100px;
      padding: 20px;
      border: 10px solid blue;
      background-color:pink;
    }
    .son{
      position: absolute;
      top: -0px;
      height: 50px;
      width: 50px;
      background-color:red;
    }
  </style>
</head>

<body>
  <script src="text2.js"></script>

</body>

</html>